package com.ha.garbage.service;

import com.ha.garbage.model.OrderDTO;
import com.ha.garbage.model.OrderVO;
import com.ha.garbage.model.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface OrderService {

    @POST("order/add")
    Call<Result> addOrder(@Body OrderDTO orderDTO);

    @GET("order")
    Call<Result<List<OrderVO>>> getByUserId(@Query("userId") Long userId);

    @POST("order/{status}")
    Call<Result> setStatus(@Path("status") Integer status, @Query("orderId") Long orderId );
}
